|
The custom control auto-remove functionality will sometimes result in "'compositeData' not found" error pages.
|
When developing an XPages Custom Control you may encounter the issue:
Error while executing JavaScript action expression
'compositeData' not found
If your custom control contains only a single control that is one of these tags:
xp:viewColumn, xp:column, xp:eventHandler, xp:selectItem, xp:selectItems
then the compositeData is not available in "Compute Dynamically" bindings,
only in "Compute on Page Load" bindings.
Normally when a custom control is inserted into an XPage, it leaves a panel-like control
in the control tree, the UIIncludeComposite. That panel provides functionality:
- it publishes the compositeData to be available in compute dynamically bindings
- it publishes any data sources that were defined on the root of the custom control page,
and handles the other data-related properties (readonly, acl etc)
- it provides a clientId naming scope.
|